﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ElectronicsMarket.Service.Models;

namespace ElectronicsMarket.Service.IService
{
    [ServiceContract]
    interface IProductService
    {
        [OperationContract]
        IQueryable<PRODUCT> getProductList();

        [OperationContract]
        PRODUCT getProductById(long productId);

        [OperationContract]
        List<PRODUCT> getProductByName(string productName);

        [OperationContract]
        List<PRODUCT> getNewProduct();

        [OperationContract]
        List<PRODUCT> getTopProduct();

        [OperationContract]
        void insertProduct(PRODUCT product);

        [OperationContract]
        void deleteProduct(PRODUCT product);

        [OperationContract]
        void updateProduct(PRODUCT product);

        [OperationContract]
        long getLastProduciId();
    }
}
